import { defHttp } from '/@/utils/http/axios';
enum Api {
  queryByText = '/goods/sku/queryByText',
  removeById = '/goods/sku/remove',
  getPage = '/goods/sku/page',
}

/**
 * 查询列表
 * @param params
 */
export const getPage = (params) => {
  return defHttp.get({ url: Api.getPage, params });
};

/**
 * 根据关键字查询
 * @param params
 */
export const queryByText = (params) => {
  return defHttp.get({ url: Api.queryByText, params});
};

/**
 * 删除sku
 * @param params
 */
export const removeById = (params) => {
  return defHttp.get({ url: Api.removeById, params });
};
